/**
 * Created by zaranengap on 2017/7/4.
 */
import { cac } from "share/utils";

export const SET_CURRENT_PAGE = "SET_CURRENT_PAGE";
export const SET_LANGUAGE = "SET_LANGUAGE";
export const SET_TENANT_MODE = "SET_TENANT_MODE";
export const SET_ADMIN_MODE = "SET_ADMIN_MODE";
export const SET_AUTH_TOKEN = "SET_AUTH_TOKEN";
export const SET_MENU_SORT = "SET_MENU_SORT";
export const SET_GUIDE = "SET_GUIDE";
export const SET_PUBLIC_TOKEN = "SET_PUBLIC_TOKEN"; // 公版client_token
export const SET_CONTROL_CONFIG = "SET_CONTROL_CONFIG";
export const SET_ROUTE_IS_SHOW = "SET_ROUTE_IS_SHOW";
export const SET_ENABLE_SCAN = "SET_ENABLE_SCAN";

export const SET_FIRST_MENU = "SET_FIRST_MENU";
export const SET_CURRENT_PAGEROUTE = "SET_CURRENT_PAGEROUTE";

export const setCurrentPage = cac(SET_CURRENT_PAGE, "currentPage");
export const setLanguage = cac(SET_LANGUAGE, "language");
export const setTenantMode = cac(SET_TENANT_MODE, "tenantMode");
export const setAdminMode = cac(SET_ADMIN_MODE, "adminMode");
export const setAuthToken = cac(SET_AUTH_TOKEN, "authToken");
export const setMenuSort = cac(SET_MENU_SORT, "menuSort");
export const setGuide = cac(SET_GUIDE, "guide");
export const setPublicToken = cac(SET_PUBLIC_TOKEN, "publicToken"); // 公版client_token
export const setControlConfig = cac(SET_CONTROL_CONFIG, "controlConfig");
export const setRouteIsShow = cac(SET_ROUTE_IS_SHOW, "routeIsShow");
export const setEnableScan = cac(SET_ENABLE_SCAN, "enableScan");

export const setFirstMenu = cac(SET_FIRST_MENU, "firstMenu");
export const setCurrentPageRoute = cac(
  SET_CURRENT_PAGEROUTE,
  "currentPageRoute"
);
